package com.ruoyi.house_sale.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.house_sale.mapper.WorkProcessMapper;
import com.ruoyi.house_sale.domain.WorkProcess;
import com.ruoyi.house_sale.service.IWorkProcessService;

/**
 * 办理进度Service业务层处理
 *
 * @author ruoyi
 * @date 2022-04-08
 */
@Service
public class WorkProcessServiceImpl implements IWorkProcessService
{
    @Autowired
    private WorkProcessMapper workProcessMapper;

    /**
     * 查询办理进度
     *
     * @param processid 办理进度主键
     * @return 办理进度
     */
    @Override
    public WorkProcess selectWorkProcessByProcessid(Long processid)
    {
        return workProcessMapper.selectWorkProcessByProcessid(processid);
    }

    /**
     * 查询办理进度列表
     *
     * @param workProcess 办理进度
     * @return 办理进度
     */
    @Override
    public List<WorkProcess> selectWorkProcessList(WorkProcess workProcess)
    {
        return workProcessMapper.selectWorkProcessList(workProcess);
    }

    /**
     * 新增办理进度
     *
     * @param workProcess 办理进度
     * @return 结果
     */
    @Override
    public int insertWorkProcess(WorkProcess workProcess)
    {
        return workProcessMapper.insertWorkProcess(workProcess);
    }

    /**
     * 修改办理进度
     *
     * @param workProcess 办理进度
     * @return 结果
     */
    @Override
    public int updateWorkProcess(WorkProcess workProcess)
    {
        return workProcessMapper.updateWorkProcess(workProcess);
    }

    /**
     * 批量删除办理进度
     *
     * @param processids 需要删除的办理进度主键
     * @return 结果
     */
    @Override
    public int deleteWorkProcessByProcessids(Long[] processids)
    {
        return workProcessMapper.deleteWorkProcessByProcessids(processids);
    }

    /**
     * 删除办理进度信息
     *
     * @param processid 办理进度主键
     * @return 结果
     */
    @Override
    public int deleteWorkProcessByProcessid(Long processid)
    {
        return workProcessMapper.deleteWorkProcessByProcessid(processid);
    }
}
